﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Genrsis.WorkitemTracking.Web.Models;
using Genrsis.WorkitemTracking.Web.Models.Shared;

namespace Genrsis.WorkitemTracking.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            var model = new HomeIndexViewModel
                            {
                                WelcomeMessage = string.Format(Strings.WelcomeMessage, Strings.ProductName),
                                Areas = new[]
                                            {
                                                new HyperlinkViewModel(Strings.Workflow_Management, "Workflow", "Index"),
                                                new HyperlinkViewModel(Strings.Workitems, "Workitem", "Index"),
                                                new HyperlinkViewModel("Testing", "Testing", "Actions")
                                            }
                            };

            return View(model);
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
